package server.modules.generator.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class NoteCommentDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 笔记id
     */
    private Long noteId;
    /**
     * 拥有者
     */
    private NoteCommentUserDTO commentUser;
    private NoteCommentUserDTO targetUser;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 父级id
     */
    private Long replyId;

    private List<NoteCommentDTO> childrenList;

}
